package com.cazj.common.util;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;

import com.cazj.pojo.Emp;

@Component
public class ManagerTaskHandler implements TaskListener {

	private static final long serialVersionUID = 3058009608512581864L;

	@Override
	public void notify(DelegateTask delegateTask) {
		Emp Emp = ShiroUtils.getEmp();
		/**从新查询当前用户，再获取当前用户对应的领导*/
		String name = Emp.getEmpName();
		//调用service层方法,拿 到此用户的领导名字, 方法待写
	}

}
